package com.qcby.service.Impl;

import com.qcby.dao.UserMapper;
import com.qcby.entity.User;
import com.qcby.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("userService")
public class UserServiceImpl  implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public int add(User user) {
        return userMapper.insertSelective(user);
    }

    @Override
    public List<User> findList(User user) {
        return userMapper.findList(user);
    }
}
